package com.bh.shipment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 运单装车图片对象 jc_shipment_img
 * 
 * @author slx
 * @date 2023-05-24
 */
@TableName("jc_shipment_img")
@Data
public class JcShipmentImg
{
    

    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 运单ID */
    @Excel(name = "运单ID")
    private Long jcShipmentId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgUrl;

    /** 创建时间 */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jcShipmentId", getJcShipmentId())
            .append("imgUrl", getImgUrl())
            .append("createTime", getCreateTime())
            .toString();
    }
}
